<template>
  <div>
    <div v-if="item.title" class="process-image-container">
      <el-image :src="item.img"></el-image>
      <el-text v-for="tx in item.title" v-if="Array.isArray(item.title)">{{tx}}</el-text>
      <el-text v-else>{{item.title}}</el-text>
      <el-text class="process-text" v-for="tx in item?.text">{{tx}}</el-text>
    </div>
    <div v-else class="arrow-right iconfont icon-shuangjiantou_you"></div>
  </div>
</template>

<script setup lang="ts">
const props = defineProps({
  item: {
    type: Object,
    default: () => {},
  },
});
</script>

<style scoped lang="scss">
.process-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.el-image {
  width: 153px;
  height: 145px;
}
.el-text {
  margin-top: 17px;
  font-weight: 600;
  font-size: 20px;
  color: #172B4D;
  line-height: 23px;
  &.process-text {
    margin-top: 10px;
    font-weight: 400;
    font-size: 16px;
    color: #7A869A;
    line-height: 24px;
    text-align: center;
    &:nth-child(2n) {
      margin-top: 0;
    }
  }
}
.arrow-right {
  margin-top: 66px;
  margin-left: 55px;
  margin-right: 55px;
  color: #D3DFFF;
  font-size: 20px;
}
</style>